package com.qbd.serviceimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qbd.dao.ProvinceMapper;
import com.qbd.model.Province;
import com.qbd.service.ProvinceService;

@Service("provinceService")
public class ProvinceServiceImpl implements ProvinceService {

	@Autowired
	private ProvinceMapper provinceMapper;

	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return provinceMapper.deleteByPrimaryKey(id);
	}

	public int insert(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.insert(record);
	}

	public int insertSelective(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.insertSelective(record);
	}

	public Province selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return provinceMapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Province record) {
		// TODO Auto-generated method stub
		return provinceMapper.updateByPrimaryKey(record);
	}

	public Long getTotal(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return provinceMapper.getTotal(map);
	}

	public List<Province> selectByPage(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return provinceMapper.selectByPage(map);
	}

	public Province selectByName(String name) {
		// TODO Auto-generated method stub
		return provinceMapper.selectByName(name);
	}

}
